DevJourney

NodeJS/geeksforgeekstutorial/File Server/File Management/Append File/server.js

var fs = require('fs');

fs.appendFile('mynewfile1.txt', 'Hello content!', function (err) {
  if (err) throw err;
  console.log('Saved!');
});
View on GitHub